package com.unswift.window.table;

public class TableTitle {

	private Object columnName;
	private boolean isEditor=false;
	private String editorType;
	private Object[] options;
	private String action;
	private Integer minWidth, maxWidth;
	private CellValidate validate;
	private Object defultValue;
	public TableTitle(Object columnName, boolean isEditor, Integer minWidth, Integer maxWidth, Object defultValue) {
		super();
		this.columnName = columnName;
		this.isEditor = isEditor;
		this.minWidth=minWidth;
		this.maxWidth=maxWidth;
		this.defultValue=defultValue;
	}
	
	public TableTitle(Object columnName, boolean isEditor, Integer minWidth, Integer maxWidth, CellValidate validate, Object defultValue) {
		super();
		this.columnName = columnName;
		this.isEditor = isEditor;
		this.minWidth=minWidth;
		this.maxWidth=maxWidth;
		this.validate=validate;
		this.defultValue=defultValue;
	}
	
	public TableTitle(Object columnName, boolean isEditor, String editorType, Integer minWidth, Integer maxWidth, Object defultValue) {
		super();
		this.columnName = columnName;
		this.isEditor = isEditor;
		this.editorType = editorType;
		this.minWidth=minWidth;
		this.maxWidth=maxWidth;
		this.defultValue=defultValue;
	}
	
	public TableTitle(Object columnName, boolean isEditor, String editorType, Integer minWidth, Integer maxWidth, CellValidate validate, Object defultValue) {
		super();
		this.columnName = columnName;
		this.isEditor = isEditor;
		this.editorType = editorType;
		this.minWidth=minWidth;
		this.maxWidth=maxWidth;
		this.validate=validate;
		this.defultValue=defultValue;
	}
	
	public TableTitle(Object columnName, boolean isEditor, String editorType, Object[] options, Integer minWidth, Integer maxWidth, Object defultValue) {
		super();
		this.columnName = columnName;
		this.isEditor = isEditor;
		this.editorType = editorType;
		this.options=options;
		this.minWidth=minWidth;
		this.maxWidth=maxWidth;
		this.defultValue=defultValue;
	}
	
	public TableTitle(Object columnName, boolean isEditor, String editorType, Object[] options, Integer minWidth, Integer maxWidth, CellValidate validate, Object defultValue) {
		super();
		this.columnName = columnName;
		this.isEditor = isEditor;
		this.editorType = editorType;
		this.options=options;
		this.minWidth=minWidth;
		this.maxWidth=maxWidth;
		this.validate=validate;
		this.defultValue=defultValue;
	}
	
	public TableTitle(Object columnName, boolean isEditor, String editorType, String action, Integer minWidth, Integer maxWidth, Object defultValue) {
		super();
		this.columnName = columnName;
		this.isEditor = isEditor;
		this.editorType = editorType;
		this.action=action;
		this.minWidth=minWidth;
		this.maxWidth=maxWidth;
		this.defultValue=defultValue;
	}
	
	public TableTitle(Object columnName, boolean isEditor, String editorType, String action, Integer minWidth, Integer maxWidth, CellValidate validate, Object defultValue) {
		super();
		this.columnName = columnName;
		this.isEditor = isEditor;
		this.editorType = editorType;
		this.action=action;
		this.minWidth=minWidth;
		this.maxWidth=maxWidth;
		this.validate=validate;
		this.defultValue=defultValue;
	}
	
	public Object getColumnName() {
		return columnName;
	}
	public void setColumnName(Object columnName) {
		this.columnName = columnName;
	}
	public boolean isEditor() {
		return isEditor;
	}
	public void setEditor(boolean isEditor) {
		this.isEditor = isEditor;
	}
	public String getEditorType() {
		return editorType;
	}
	public void setEditorType(String editorType) {
		this.editorType = editorType;
	}
	public Integer getMinWidth() {
		return minWidth;
	}
	public void setMinWidth(Integer minWidth) {
		this.minWidth = minWidth;
	}
	public Integer getMaxWidth() {
		return maxWidth;
	}
	public void setMaxWidth(Integer maxWidth) {
		this.maxWidth = maxWidth;
	}
	public Object[] getOptions() {
		return options;
	}
	public void setOptions(Object[] options) {
		this.options = options;
	}
	public CellValidate getValidate() {
		return validate;
	}
	public void setValidate(CellValidate validate) {
		this.validate = validate;
	}
	public String getAction() {
		return action;
	}
	public void setAction(String action) {
		this.action = action;
	}
	public Object getDefultValue() {
		return defultValue;
	}
	public void setDefultValue(Object defultValue) {
		this.defultValue = defultValue;
	}
	@Override
	public String toString() {
		return columnName.toString();
	}
}
